package agent.simple.agentmain;

import java.lang.instrument.Instrumentation;

/**
 * agent.simple.agentmain.MyAgent
 *
 * @author cyril
 * @date 2022/3/8 10:36 下午
 * <p>
 * 日进一寸 日拱一卒
 */
public class MyAgent {

    // 同时存在，优先运行该方法
    public static void agentmain(String agentArgs, Instrumentation instrumentation) {
        System.out.println("agent main start 111");
        System.out.println("args: " + agentArgs);
    }

    public static void agentmain(String agentArgs) {
        System.out.println("agent main start 222");
        System.out.println("args: " + agentArgs);
    }

}
